﻿using Examples.HelloWorldPVCM.UI.Presenters;
using Examples.HelloWorldPVCM.UI.Views;
using Hrunga.PVCM.Framework.Controls;
using Hrunga.PVCM.Web;

namespace Examples.HelloWorldPVCM.Web
{
    /// <summary>
    /// A simple HelloWorld form which request a name and let you submit it
    /// to the server.
    /// </summary>
    public partial class HelloWorld : Form<HelloWorldPresenter, IHelloWorldView>, IHelloWorldView
    {

        /// <summary>
        /// Textbox where you can input your name
        /// </summary>
        /// <value>A TextBox</value>
        public ITextBox Name
        {
            get { return this.txtName; }
        }

        /// <summary>
        /// Label to put a message in after the submit
        /// </summary>
        /// <value>A Label</value>
        public ILabel Message
        {
            get { return this.lblMessage; }
        }

        /// <summary>
        /// Button used to submit your name
        /// </summary>
        /// <value>A Button</value>
        public IButton SubmitName
        {
            get { return btnSubmitName; }
        }
    }
}